//
//  WGDay.h
//  WorkGo
//
//  Created by 李树志 on 2017/9/30.
//  Copyright © 2017年 李树志. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface WGDay : NSManagedObject

/**
 序号
 */
@property (nonatomic) int16_t number;

/**
 日期字符串
 */
@property (nullable, nonatomic, copy) NSString *date;

/**
 农历年
 */
@property (nullable, nonatomic, copy) NSString *lunarYear;

/**
 农历月日
 */
@property (nullable, nonatomic, copy) NSString *lunar;

/**
 星期几
 */
@property (nullable, nonatomic, copy) NSString *weekday;

/**
 生肖
 */
@property (nullable, nonatomic, copy) NSString *zodiac;

/**
 节假日名称(仅节假日有,非节假日时为空)
 */
@property (nullable, nonatomic, copy) NSString *holiday;

/**
 宜
 */
@property (nullable, nonatomic, copy) NSString *suit;

/**
 忌
 */
@property (nullable, nonatomic, copy) NSString *avoid;

/**
 星期几的数字
 */
@property (nonatomic) int16_t weekNum;

/**
 是否是工作日
 */
@property (nonatomic) BOOL isWork;

/**
 法定休假日数组
 */
@property (nullable, nonatomic, strong) NSArray<NSString *> *publicHolidays;

/**
 法定加班日数组
 */
@property (nullable, nonatomic, strong) NSArray<NSString *> *publicWorkdays;

- (instancetype _Nullable)initWithDict:(NSDictionary *_Nullable)dict;

+ (instancetype _Nullable)dayWithDict:(NSDictionary *_Nullable)dict;

@end
